
#import "OperationData.h"

#import "ThumbData.h"

@implementation OperationStartData

-(void) set:(NSString*)pDestDir  sel:(SEL)pSelOp
			thumbList:(NSMutableArray*)pThumbList    clearSel:(BOOL)pClearSel
			updateThumb:(BOOL)pUpdateThumb   opType:(OperationType)pOpType
{
	destDir = pDestDir;
	[destDir retain];
	selOp = pSelOp;
	thumbList = pThumbList;
	[thumbList retain];
	clearSel = pClearSel;
	updateThumb = pUpdateThumb;
	opType = pOpType;
}

- (void) dealloc
{
	[destDir release];
	[thumbList release];

	[super dealloc];
}

@end


//------------------------------------------------------------------------------
@implementation OperationCompleteData

- (void) set:(NSString*) pDestDir  thumbList:(NSMutableArray*)pThumbList  
			tdLast:(ThumbData*) ptdLast  opType:(OperationType)pOpType
{
	destDir = pDestDir;
	[destDir retain];
	thumbList = pThumbList;
	[thumbList retain];
	tdLast = ptdLast;
	[tdLast retain];
	opType = pOpType;
}

- (void) dealloc
{
	[destDir release];
	[thumbList release];
	[tdLast release];

	[super dealloc];
}

@end


//------------------------------------------------------------------------------
@implementation FMStartLoad
- (id) initFile:(NSString*) apath  showImage:(BOOL)aShowImage
{
	self = [super init];
	if (nil != self)
	{
		path = apath;
		[path retain];

		showImage = aShowImage;
	}

	return self;
}

- (void) dealloc
{
	[path release];
	[super dealloc];
}

- (NSString*) path
{
	return path;
}

- (BOOL) showImage
{
	return showImage;
}

@end


//------------------------------------------------------------------------------
@implementation FMAvailableData
- (id) initFile:(NSString*) aFirstFile  fm:(FolderModel*) aFM  showImage:(BOOL)aShowImage
{
	self = [super init];
	if (nil != self)
	{
		firstFile = aFirstFile;
		[firstFile retain];

		fm = aFM;
		[fm retain];

		showImage = aShowImage;
	}

	return self;
}

- (FolderModel*) folderModel
{
	return fm;
}

- (NSString*) firstFile
{
	return firstFile;
}

- (BOOL) showImage
{
	return showImage;
}

- (void) dealloc
{
	[firstFile release];
	[fm release];
	[super dealloc];
}

@end

